{literal}{if ({/literal}{$show:default:true}{literal})}{/literal}
<select name="{$name}">
	<option value="{$noselectionvalue|default:'0'}">{$noselection|default:'Please select something'}</option> 
{literal}{foreach from=${/literal}{$from}{literal} item="{/literal}{$item}{literal}"}{/literal}
	
	{literal}{if ({/literal}{$selectedcond}{literal})}{/literal}
		<option value="{literal}{${/literal}{$item}{literal}->{/literal}{$optvalue}{literal}}{/literal}" selected="selected">{literal}{${/literal}{$item}{literal}->{/literal}{$caption}{literal}}{/literal}</option>
	{literal}{else}{/literal}
		<option value="{literal}{${/literal}{$item}{literal}->{/literal}{$optvalue}{literal}}{/literal}">{literal}{${/literal}{$item}{literal}->{/literal}{$caption}{literal}}{/literal}</option>
	{literal}{/if}{/literal}

{literal}{/foreach}{/literal}
</select>
{literal}{/if}{/literal}